<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets" >

    <h:head>

        <h:outputStylesheet library="css" name="default.css" />

        <h:outputScript library="scripts" name="script.js" />

        <h:outputScript library="scripts" name="masks.js" />
        
        <link rel="shortcut icon" href="resources/imagens/favicon.png" />

        <title>Contabilidade [Or&ccedil;amento]</title>

    </h:head>

    <f:view contentType="text/html" encoding="ISO-8859-1">
        <h:body>

            <p:ajaxStatus onstart="statusDialog.show();"
                          onsuccess="statusDialog.hide();"/>

            <p:dialog modal="true" widgetVar="statusDialog"
                      header="Carregando." appendToBody="true"
                      draggable="false" closable="false">

                <center>
                    <p:graphicImage library="imagens" name="carregando.gif" />
                </center>

            </p:dialog>

            <ui:include src="relatorios/Relatorios.xhtml" />

            <pe:layout  fullPage="true" >

                <pe:layoutPane  id="top" position="north" size="85"
                                closable="false" resizable="false">
                    <h:panelGroup>

                        <div align="left" style="float: left;">
                            <p:graphicImage library="imagens" name="logo267_74.png"
                                            style="width: 267px; height: 74px;"/>
                        </div>

                        <div align="right" >

                        </div>
                    </h:panelGroup>

                </pe:layoutPane>

                <pe:layoutPane  id="bottom" position="south" size="21"
                                maxSize="40" closable="false" resizable="false">
                    <center>
                        <font size="2"> &copy;2013 BS Sistemas Inform&aacute;tica Ltda.<br/>
                        </font>
                    </center>
                </pe:layoutPane>

                <pe:layoutPane id="left" position="west" size="180"
                               closable="true" 
                               >


                    <h:form>

                        <p:accordionPanel activeIndex="#{acoordionBean.activeIndexLeft}"  >

                            <p:ajax event="tabChange" listener="#{acoordionBean.onTabChangeLeft}" />                       

                            <p:tab title="Composição do Elemento">

                                <p:commandLink value="Cat. Econ. Despesa"
                                               action="/categoria-economica-de-despesa/CategoriasEconomicasDeDespesa.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()"/>
                                <hr/>
                                <p:commandLink value="Naturezas"
                                               action="/natureza/Naturezas.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Modalidade"
                                               action="/modalidade/Modalidades.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                            </p:tab>
                            <p:tab title="Entidades">
                                <p:commandLink value="Tipos Orgão"
                                               action="/tipo-orgao/TiposOrgao.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Unidades Gestoras"
                                               action="/unidade-gestora/UnidadesGestoras.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Orgão"
                                               action="/orgao/Orgaos.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Unid. Orçamentár."
                                               action="/unidade-orcamentaria/UnidadesOrcamentarias.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Gestor"
                                               action="/gestor/Gestores.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                            </p:tab>
                            <p:tab title="Orçamentos">
                                <p:commandLink value="Planos de Conta"
                                               action="/plano-de-conta/PlanosDeConta.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Categoria de Orçamento"
                                               action="/categoria-orcamento/CategoriasOrcamento.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()"/>
                                <hr/>
                                <p:commandLink value="Vínculos"
                                               action="/vinculo/Vinculos.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Percentuais"
                                               action="/percentual/Percentuais.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Tipos Orçamento"
                                               action="/tipo-orcamento/TiposOrcamento.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Nível"
                                               action="/nivel/Niveis.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                            </p:tab>
                            <p:tab title="PPA">
                                <p:commandLink value="Horiz. Temp."
                                               action="/horizonte-temporal/HorizontesTemporais.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Ingresso"
                                               action="/ingresso/Ingressos.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Indicadores"
                                               action="/indicador/Indicadores.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Nat. do Programa"
                                               action="/natureza-programa/NaturezasDoPrograma.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Per. Medições"
                                               action="/periodo-medicao/PeriodosMedicoes.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Programa"
                                               action="/programa/Programas.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Tipos Prazo"
                                               action="/tipo-prazo/TiposDePrazo.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Formas Impl. Açao"
                                               action="/forma-implementacao-acao/FormasDeImplementacaoDaAcao.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr />
                                <p:commandLink value="Unidades Medida"
                                               action="/unidade-medida/UnidadesDeMedida.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />  
                            </p:tab>
                            <p:tab title="Despesas">
                                <p:commandLink value="Elemento"
                                               action="/elemento/Elementos.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Elemento Despesa"
                                               action="/elemento-de-despesa/ElementosDeDespesa.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Funções"
                                               action="/funcao/Funcoes.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Dotação"
                                               action="/dotacao/Dotacoes.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                            </p:tab>
                            <p:tab title="Receitas">
                                <p:commandLink value="Cat. Econ. Receita"
                                               action="/categoria-economica-de-receita/CategoriasEconomicaDeReceita.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show()"
                                               oncomplete="statusDialog.hide()"/>
                                <hr/>
                                <p:commandLink value="Origem"
                                               action="/origem/Origens.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Especie"
                                               action="/especie/Especies.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Rúbrica"
                                               action="/rubrica/Rubricas.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Alíneas"
                                               action="/alinea/Alineas.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Sublinea"
                                               action="/sublinea/Sublineas.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Planos de Receita"
                                               action="/plano-de-receita/PlanosDeReceita.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Tipos. Plan. Receita"
                                               action="/tipo-plano-de-receita/TiposPlanoDeReceita.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Prev. de Receita"
                                               action="/previsao-de-receita/PrevisoesDeReceita.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                            </p:tab>
                            <p:tab title="Fichas Extras">
                                <p:commandLink value="Plano Conta Extra"
                                               action="/plano-de-conta-extra/PlanosDeContaExtra.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Tipos Extra"
                                               action="/tipo-extra/TiposExtra.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                                <p:commandLink value="Fichas Extra Orç."
                                               action="/ficha-extra-orcamentaria/FichasExtraOrcamentaria.jsf?faces-redirect=true"
                                               style="text-decoration: none"
                                               onstart="statusDialog.show();"
                                               oncomplete="statusDialog.hide()" />
                                <hr/>
                            </p:tab>
                            <p:tab title="Relatórios">

                                <p:commandLink value="Relatórios"
                                               style="text-decoration: none"
                                               onclick="dlgRelatorios.show()" />

                            </p:tab>

                        </p:accordionPanel>

                    </h:form>
                </pe:layoutPane>
                <pe:layoutPane id="rigth" position="east" size="180"
                               closable="true"
                               resizable="false" >
                    <p:accordionPanel>
                        <p:tab title="Cadastros">
                            <p:commandLink value="Confirmação"
                                           action="/confirmacao/Confirmacoes.jsf?faces-redirect=true"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()"/>
                            <hr/>
                            <p:commandLink value="Ficha C. Bancária"
                                           action="/ficha-conta-bancaria/FichasContaBancaria.jsf?faces-redirect=true"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()" />
                            <hr/>
                            <p:commandLink value="Tipos Crédito"
                                           action="/tipo-credito/TiposCredito.jsf?faces-redirect=true"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()" />
                            <hr/>
                            <p:commandLink value="Tipos Despesa"
                                           action="/tipo-despesa/TiposDespesa.jsf?faces-redirect=true"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()" />
                            <hr/>
                            <p:commandLink value="Sair"
                                           action="Acesso.jsf?faces-redirect=true"
                                           actionListener="#{acessoBean.logout}"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()"/>
                        </p:tab>
                        <p:tab title="Bancos">
                            <p:commandLink value="Tipos Banco"
                                           action="/tipo-banco/TiposBanco.jsf?faces-redirect=true"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()" />
                            <hr/>
                            <p:commandLink value="Tipos Conta"
                                           action="/tipo-conta/TiposConta.jsf?faces-redirect=true"
                                           style="text-decoration: none"
                                           onstart="statusDialog.show();"
                                           oncomplete="statusDialog.hide()" />
                        </p:tab>
                    </p:accordionPanel>
                </pe:layoutPane>

                <pe:layoutPane  id="centro"
                                position="center"
                                closable="false"
                                resizable="false">

                    <ui:insert name="conteudo"/>

                </pe:layoutPane>

            </pe:layout >
        </h:body>
    </f:view>
</html>